const koa=require('koa');
const {koaBody}=require('koa-body');
const cors=require('koa-cors');
const app=new koa();
const router=require('./index')

app.use(cors());
app.use(koaBody());
app.use(router)
app.listen(3000,()=>{
    console.log('服务启动成功 端口号3000');
})